package org.lanqiao.admin;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.lanqiao.admins.Administrator;
import org.lanqiao.users.Admin;

import java.util.List;
import java.util.Map;

public interface IAdministratorService {
    List<Administrator> administratorList();
    List<Administrator> administratorListByCondition(Map<String,Object> queryMap);
    IPage<Administrator> administratorPage(Integer pagenum, Integer pagesize);
    IPage<Administrator> administratorPageByCondition(Integer pagenum,Integer pagesize,Map<String,Object> queryMap);
    Integer addAdministrator(Administrator administrator);
    Integer updateAdministrator(Administrator administrator);
    Integer deleteAdministratorById(Integer id);
    Administrator queryAdminByName(String loginname);
}
